<template>
  <div>
      <h1>我接收到来自 study 兄弟组件的数据---{{arr}}</h1>
  </div>
</template>

<script>
import eventbus from "@/eventBus"
export default {
  data(){
    return {
      arr:''
    }
  },
  mounted(){
    eventbus.$on('study',(val)=>{
      this.arr = val
      alert(val)
    })
  }
}
</script>

<style>

</style>